﻿@{
    Layout = null;
}
<!-- Position Content Holder div Begin -->

<div id="positionContentHolderTemplateId" style="display: none;">
    <div class="ContentHolderHeader">
        <img src="/content/themes/default/img/editor/c_move.jpg" width="10px" height="20px"
            class="positionContentHolderMove" alt="move" />
        <img src="/content/themes/default/img/editor/c_edit.gif" class="positionContentHolderEdit"
            alt="Edit" />
        <img src="/content/themes/default/img/editor/c_remove.gif" class="positionContentHolderRemove"
            alt="remove" />
        <img src="/content/themes/default/img/editor/c_up.gif" class="positionContentHolderToggle"
            alt="Toggle" />
    </div>
    <div style="clear: both;">
    </div>
    <far class='localizedStaticContent' key='{0}' pageid='{1}' ordid='{2}' holderid='{3}'
        partid='{4}'>Double click to edit</far>
</div>
<div id="positionDynamicContentHolderTemplateId" style="display: none;">
    <div class="ContentHolderHeader">
        <img src="/content/themes/default/img/editor/c_move.jpg" width="10px" height="20px"
            class="positionContentHolderMove" alt="move" />
        <img src="/content/themes/default/img/editor/c_remove.gif" class="positionContentHolderRemove"
            alt="remove" />
        <img src="/content/themes/default/img/editor/c_up.gif" class="positionContentHolderToggle"
            alt="Toggle" />
    </div>
    <div style="clear: both;">
    </div>
    <far class='localizedDynamicContent' key='{0}' pageid='{1}' ordid='{2}' holderid='{3}'
        needcontent='true' partid='{4}'></far>
</div>
<!-- Position Content Holder div END -->
@{Html.Telerik().Window()
      .Name("ViewSelectorWindow")
      .Title("Select View")
      .Content(@<text>
    @Html.Action("DynamicContentSelector", "InlineEditing", new { area = "Admin", holderId = 18, pageId = 1 })
    </text>).Width(500).Height(400).Draggable(true).Modal(true).Resizable(c => c.Enabled(true)).Visible(false)
.Render(); 
}
<style>
    .textarea textarea{ height: 400px; width: 690px; }
    .t-window-content { min-height: 410px; }
    .t-editor { height: 370px; }
</style>

@*<script>
    $("LabelInlineWindow").dialog({
        resizable: true,
        height: 400,
        width: 500,
        modal: true,
        buttons: {
            "OK": function () {
                save();
                $(this).dialog("close");
            },
            Cancel: function () {
                cancel();
                $(this).dialog("close");
            }
        }
    });
</script>*@


@*@{Html.Telerik().Window().Name("LabelInlineWindow").Title("Edit Content")
.Buttons(buttons => buttons.Maximize().Close()).Content(@<text>
    @(Html.Telerik().Editor().Name("LabelInlineEditor")
                        .Encode(false)
                        .Tools(tools => tools
                        .Custom(settings => settings.HtmlAttributes(new { @class = "t-html" }))
                        ))
    <div class="form-actions">
        <button type="submit" onclick="javascript:save();">
            OK</button>
        <button type="submit" onclick="javascript:cancel();">
            Cancel</button>
    </div>
    </text>).Width(500).Height(400).Draggable(true).Modal(true).Resizable(c => c.Enabled(true)).Visible(false).Render();}*@
@*<style type="text/css">
        .t-editor .t-html
        {
            background-image: url('@Url.Content("~/Content/Editor/CustomTools/insert-html-icon.png") ');
        }
</style>*@